'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    
  const { router, controller ,middleware} = app;
  router.get('/', controller.home.index);
  router.get('user','/api/list',controller.user.index)
//   router.get('user','/api/list',middleware.params(),controller.user.index)
  router.post('/api/add',controller.user.add)
};
